<!DOCTYPE html>
<html lang="zh">
<head>
<title>商品库存参数设置 | OMS</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT" />

<!-- 加载 bootstrap 样式-->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/font-awesome/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap/css/bootstrap.min.css" />

<!-- 加载本页需要的三方插件样式 -->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-select/bootstrap-select.min.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/jquery.dataTables.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/extensions/TableTools/css/dataTables.tableTools.min.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/dataTables.bootstrap.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-tablesorter/themes/blue/style-custom.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/animate.css/animate.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/iCheck/skins/all.css" />


<!-- 加载主题风格样式 -->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" class="default-style" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" id="theme-change"
    class="style-change color-change" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/style-responsive.css" />
</head>
<body class="">
    <!--BEGIN CONTENT-->
    <div class="page-content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12">
                    <div class="portlet box portlet-blue" style="margin-bottom: 15px;">
                        <div class="portlet-header">
                            <div class="caption">可设置项目列表</div>
                        </div>
                        <div class="portlet-body">
                            <table id="table4StockPush" class="table table-hover table-striped table-bordered table-advanced tb-sticky-header"
                                width="100%">
                                <thead>
                                    <tr>
                                        <th width="20%" colValue="projectName">项目名称</th>
                                        <th width="10%" colValue="fmlaContent">库存公式</th>
                                        <th width="10%" colValue="stockType" style="text-align:left">库存获取方式</th>
                                        <th width="10%" colValue="fmlaRatioStorageContent" style="text-align:left">仓库推送比例设置</th>
                                        <th width="10%" colValue="fmlaRatioSkuContent" style="text-align:left">商品推送比例设置</th>
                                        <th width="10%" colValue="updateTime" style="text-align:left">更新时间</th>
                                        <th width="30%" colValue="operation">操作</th>
                                    </tr>
                                </thead>
                                <tbody></tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="storageRatioSetModel" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" class="modal fade">
        <div class="modal-dialog" style="width: 790px">
            <form role="form" class="form-horizontal">
                <div class="modal-content">
                    <div class="modal-header modal-header-primary">
                        <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                        <h4 class="modal-title">库存公式设置</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-12">
                                <div id="storageChart" style="width: 700px; height: 300px;"></div>
                            </div>
                        </div>
                        <hr />
                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <span>当前仓库：</span><span id="storageName">大连仓</span>
                            </div>
                            <div class="panel-body">
                                <div id="shopInputContainer"></div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="buttonClose" data-dismiss="modal" class="btn btn-default">关闭</button>
                        <button id="btnStorageRatioSave" type="button" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div id="fmlaModel" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" class="modal fade">
        <div class="modal-dialog" style="width: 790px">
            <form role="form">
                <div class="modal-content">
                    <div class="modal-header modal-header-primary">
                        <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                        <h4 class="modal-title">库存公式设置</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-10">
                                <div class="form-group">
                                    <input type="text" id="expression" name="expression" class="form-control input-md" maxlength="60"> <input
                                        type="hidden" id="fmlaId" name="fmlaId"> <input type="hidden" id="prjId" name="prjId"> <input
                                        type="hidden" id="prjName" name="prjName">
                                </div>
                            </div>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <button type="button" id="sliceBtn" class="btn btn-primary btn-block">退格</button>
                                </div>
                            </div>
                        </div>
                        <hr />
                        <div class="row">
                            <div class="col-md-4">
                                <div class="col-xs-8 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaElement btn btn-info btn-block">库存数</button>
                                    </div>
                                </div>
                                <div class="col-xs-4 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaElement btn btn-default btn-block">在途数</button>
                                    </div>
                                </div>
                                <div class="col-xs-4 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaElement btn btn-default btn-block">已分派</button>
                                    </div>
                                </div>
                                <div class="col-xs-4 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaElement btn btn-default btn-block">未分派</button>
                                    </div>
                                </div>
<!--                                 <div class="col-xs-4 p-xs"> -->
<!--                                     <div class="form-group m-b-xs"> -->
<!--                                         <button type="button" class="btnFmlaElement btn btn-default btn-block">未付款</button> -->
<!--                                     </div> -->
<!--                                 </div> -->
                                <div class="col-xs-4 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaElement btn btn-default btn-block">预留数</button>
                                    </div>
                                </div>
                                <div class="col-xs-4 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaElement btn btn-default btn-block">冻结数</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-5">
                                <div class="col-sm-4 p-xs">
                                    <div class="form-group m-b-xs">
                                        <button type="button" class="btnFmlaSign btn btn-warning btn-block" style="height: 82px;">+</button>
                                    </div>
                                </div>
                                <div class="col-sm-8 p-l-xs">
                                    <div class="form-group col-md-4 m-b-xs p-xs">
                                        <button type="button" class="btnFmlaSign btn btn-default btn-block">-</button>
                                    </div>
<!--                                     <div class="form-group m-b-xs col-md-4 p-xs"> -->
<!--                                         <button type="button" class="btnFmlaSign btn btn-default btn-block">*</button> -->
<!--                                     </div> -->
<!--                                     <div class="form-group m-b-xs col-md-4 p-xs"> -->
<!--                                         <button type="button" class="btnFmlaSign btnFmlaSign btn btn-default btn-block">/</button> -->
<!--                                     </div> -->
<!--                                     <div class="form-group m-b-xs col-md-4 p-xs"> -->
<!--                                         <button type="button" class="btnFmlaSign btn btn-default btn-block">(</button> -->
<!--                                     </div> -->
<!--                                     <div class="form-group m-b-xs col-md-4 p-xs"> -->
<!--                                         <button type="button" class="btnFmlaSign btn btn-default btn-block">)</button> -->
<!--                                     </div> -->
                                    <div class="form-group m-b-xs col-md-4 p-xs">
                                        <button id="btnFmlaClear" type="button" class="btn btn-default btn-block">清空</button>
                                    </div>
                                    <div class="form-group m-b-xs col-md-4 p-xs">&nbsp;</div>
                                    <div class="form-group m-b-xs col-md-8 p-xs">
                                        <button id="btnFmlaValid" type="button" class="btn btn-success btn-block">公式校验</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <h4>库存来源&nbsp;<span class="require">*</span></h4>
                                <ul class="list-unstyled">
                                    <li class="pbm"><input id="local" name="storageResourceType" type="radio" class="icheck" />&nbsp;&nbsp;
                                        <label for="local">库存由本地计算</label></li>
                                    <li class="pbm"><input id="ext" name="storageResourceType" type="radio" class="icheck" />&nbsp;&nbsp; <label
                                        for="remote">来自第三方接口</label></li>
                                    <li class="pbm" style="display:none;"><input id="isVirtualCount" name="isVirtualCount" type="checkbox" class="icheck" />&nbsp;&nbsp;
                                        <label for="visualStorage">计算虚拟库存</label></li>
                                    <li class="pbm"><input id="isSubUnPaid" name="isSubUnPaid" type="checkbox" class="icheck" />&nbsp;&nbsp;
                                        <label for="isSubUnPaid">扣减未付款数</label></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="buttonClose" data-dismiss="modal" class="btn btn-default">关闭</button>
                        <button id="btnFmlaSave" type="button" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div id="skuRatioSetModel" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" class="modal fade">
        <div class="modal-dialog modal-wide-width">
            <form role="form">
                <div class="modal-content">
                    <div class="modal-header modal-header-primary">
                        <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                        <h4 class="modal-title">商品推送比例设置</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="row m-b-xs">
                                    <div class="col-lg-2 col-xs-2 col-sm-2 col-md-2">
                                        <span class="input-group-btn">
                                            <button id="btnSkuRatioMultiSet" type="button" class="btn btn-primary">
                                                <i class="fa fa-list-ul"></i> 批量设置
                                            </button>
                                        </span>
                                    </div>
                                    <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5">
                                    </div>
                                    <div class="col-lg-1 col-xs-1 col-sm-1 col-md-1">
                                        <select id="isSet">
                                            <option id="all" value="all">全部</option>
                                            <option id="set" value="set">已设置</option>
                                            <option id="unset" value="unset">未设置</option>
                                        </select>
                                    </div>
                                    <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
                                        <div class="input-group">
                                            <input id="quickSearch" type="text" placeholder="系统商品名称" class="form-control" /> 
                                            <span class="input-group-btn">
                                                <button id="btnGoodsSkuSearch" type="button" class="btn btn-primary">
                                                    <i class="fa fa-search"></i>
                                                </button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="table-responsive">
                                    <table id="goodsSkuTable"
                                        class="table table-hover table-striped table-bordered table-advanced tb-sticky-header" cellspacing="0">
                                        <thead>
                                            <tr>
                                                <th width="5%" colValue="operation">操作</th>
                                                <th width="25%" colValue="goodsCode">商品商家编码</th>
                                                <th width="15%" colValue="goodsName">商品名称</th>
                                                <th width="25%" colValue="skuCode">规格商家编码</th>
                                                <th width="15%" colValue="skuName">规格名称</th>
                                                <th width="15%" colValue="isSet">状态</th>
                                                
                                                <th colValue="skuId"></th>
                                                <th colValue="goodsId"></th>
                                            </tr>
                                        </thead>
                                        <tbody></tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <hr/>
                        <br />
                        <div class="row">
                            <div class="col-md-7">
                                <div id="skuStorageChart" style="width: 700px; height: 250px;"></div>
                            </div>
                            <div class="col-md-5">
                                <div class="panel panel-primary">
                                    <div class="panel-heading">
                                        <span id="storageName4Sku">大连仓</span> | <span id="SkuName"></span>
                                    </div>
                                    <div class="panel-body" style="height: 200px;">
                                        <div id="shopInputContainer4Sku"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="buttonClose" data-dismiss="modal" class="btn btn-default">关闭</button>
                        <button id="btnSkuRatioSave" type="button" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <!--END CONTENT -->
    <!-- 加载 jquery js-->
    <script src="/Apollo/madmin/js/jquery-1.10.2.min.js"></script>
    <script src="/Apollo/madmin/js/jquery-migrate-1.2.1.min.js"></script>
    <script src="/Apollo/madmin/js/jquery-ui.js"></script>

    <!-- 加载 bootstrap 和三方插件 js -->
    <script src="/Apollo/madmin/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script src="/Apollo/madmin/js/html5shiv.js"></script>
    <script src="/Apollo/madmin/js/respond.min.js"></script>
    <script src="/Apollo/madmin/vendors/iCheck/icheck.min.js"></script>
    <script src="/Apollo/madmin/vendors/iCheck/custom.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
    <script src="/Apollo/madmin/vendors/holder/holder.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/media/js/jquery.dataTables.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/media/js/dataTables.bootstrap.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
    <script src="/Apollo/madmin/vendors/bootstrap-maxlength.js"></script>
    <script src="/Apollo/echarts/echarts.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
    
    <script src="/Apollo/madmin/vendors/bootstrap-select/bootstrap-select.min.js"></script>

    <script src="stockpush.js"></script>
</body>
</html>